home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
progs
/
editor
/
frexxed
/
fpl
/
insremtab.fpl
< prev
next >
Wrap
Text File
|
1995-08-10
|
578b
|
39 lines
export void InsTab(void)
{
if(ReadInfo("line_length")>1)
{
int i;
if(ReadInfo("indent_uses_tabs"))
Output("\t");
else
for(i=0;i<ReadInfo("tab_size");i++)
Output(" ");
CursorLeft(1);
}
CursorDown(1);
}
export void RemTab(void)
{
if(ReadInfo("line_length")>1)
if(GetChar()=='\t')
Delete(1);
else
{
int i;
for(i=0;(i<ReadInfo("tab_size") && GetChar()==' ');i++)
Delete(1);
}
CursorDown(1);
}
{
AssignKey("InsTab();", "Control 'Tab'");
AssignKey("RemTab();", "Shift Control 'Tab'");
ConstructInfo("indent_uses_tabs", "", "", "WLB", "", 0, 1, 1);
}